<div style="width: 16.6ex; background: rgb(195, 217, 255)">
    <table><tbody><tr><td>
        <input style="width: 100%;" value="Should fit in blue box">
    </td></tr></tbody></table>
</div>